<script>
import 'animate.css';
export default {
	onLaunch: function () {
		// 监听中间按钮触发
		uni.onTabBarMidButtonTap(() => {
			uni.navigateTo({
				url: '/pages/inStorage/select'
			});
		});
	},
	onShow: function () {
		const token = uni.getStorageSync('token');
		if (token == null) {
			uni.navigateTo({
				url: '/pages/login/login'
			});
		}
		console.log('App Show');
	},
	onHide: function () {
		console.log('App Hide');
	}
};
</script>

<style>
/*每个页面公共css */
body {
	background-color: #f8f9fa;
	font-size: 35rpx;
}
.aaa {
	background-color: rgba(red, green, blue, 20);
}
</style>
